package com.lry.pda.bottom.c.backend;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class FuncArgHelper {
    private static FuncArgHelper self = null;
    private List<Object> funcArgList = new ArrayList<>();

    public static FuncArgHelper getSelf() {
        if (self == null) {
            self = new FuncArgHelper();
        }
        return self;
    }

    public void setFuncArgList(List<Object> list) {
        funcArgList = list;
    }

    public List<Object> getFuncArgList(boolean reverse) {
        if (reverse) {
            Collections.reverse(funcArgList);
        }
        return funcArgList;
    }

    private FuncArgHelper() {}
}
